package metaphor.web;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Mark Ashworth <javameme@gmail.com>
 * @version 1.0.0
 * @since 1.0.0
 */
public class Search {
    private String search;
    private int page;
    private int pageSize;

    private List<Integer> pageSizes;

    public Search() {
        pageSizes = new ArrayList<Integer>();
        pageSizes.add(new Integer(5));
        pageSizes.add(new Integer(10));
        pageSizes.add(new Integer(15));
        pageSizes.add(new Integer(20));
        pageSizes.add(new Integer(25));
        pageSizes.add(new Integer(30));
        pageSizes.add(new Integer(35));
        pageSizes.add(new Integer(40));
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<Integer> getPageSizes() {
        return pageSizes;
    }

    public void setPageSizes(List<Integer> pageSizes) {
        this.pageSizes = pageSizes;
    }
}
